

import React, { Component } from 'react'
import * as color from '../../configs/color'

const maskStyle = {
    position: 'fixed',
    left: 0,
    top: 0,
    right: 0,
    bottom: 0,
    zIndex: 199
}

export default class Mask extends Component {
    constructor(props) {
        super(props)
    }

    render() {
        return (
            <div style={Object.assign({}, maskStyle, {backgroundColor: this.props.bg})}></div>
        )
    }
}

Mask.defaultProps = {
    bg: color.MASK
}